package com.mofeng.myshop.controller.portal;


import com.mofeng.myshop.service.IProjectService;
import com.mofeng.myshop.until.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 项目 前端控制器
 * </p>
 *
 * @author MoFeng
 * @since 2024-04-15
 */
@RestController
@RequestMapping("/portal/project")
@RequiredArgsConstructor
@Tag(name = "项目相关接口", description = "项目相关接口")
public class ProjectPortalController {

    private final IProjectService projectService;

    @Operation(summary = "获取项目列表")
    @GetMapping("/list")
    public R initAdminAccount() {
        return projectService.getListPortal();
    }
}
